<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
    <h2>
        <div th:text="${SPRING_SECURITY_LAST_EXCEPTION}"></div>
    </h2>
    <h1>用户登录</h1>
    <form method="post" th:action="@{/doLogin}" >
        用户名：<input name="username" type="text" /><br>
        密码：<input name="password" type="text" /><br>
        <input type="submit" value="登录">
    </form>

</body>
</html>
